import 'package:flutter/material.dart';
import 'package:photo_frame/widgets/app_bar_widget.dart';
import 'package:webview_flutter/webview_flutter.dart';

class AppWebviewPage extends StatelessWidget {
  final String url;
  final String title;
  AppWebviewPage({required this.title, required this.url, super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: commonAppBar(title),
        body: Container(
            width: double.infinity,
            height: double.infinity,
            child: WebView(
                initialUrl: url, javascriptMode: JavascriptMode.unrestricted)));
  }
}
